<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
	session_start();
	require("connect.php");
	$uNews=$_REQUEST["uNews"];	
	$title=$_REQUEST["title"];
	$description=$_REQUEST["description"];
	$image=$_REQUEST["image"];
	$content=$_REQUEST["content"];
	$author=$_REQUEST["author"];
	$date=$_REQUEST["date"];
	$sqldate = strtotime($date);
	$date_input = date('Y-m-d', $sqldate);		
	$statement=$_REQUEST["statement"];		
	$sql="update news set title='{$title}', description='{$description}', image='{$image}', content='{$content}', author='{$author}', date='{$date_input}' where uNews='{$uNews}'";	
	mysql_query("$sql") or die("Error!");
	mysql_close();
	header("Location:articleManager.php");
?>
